@charset "UTF-8";

/* 变量定义 */
:root {
  --primary-color: #9400ff;
  --secondary-color: #4096ff;
  --success-color: #67C23A;
  --warning-color: #d9534f;
  --text-color: #606266;
  --text-light: #999;
  --border-color: #e9e9eb;
  --background-color: #fff;
  --hover-bg: #c9dfff;
  --active-bg: #9400ff;
  --box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22);
  --border-radius: 8px;
  --transition-time: 0.3s;
}

/* 基础重置 */
.buyu_config * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.buyu_config li {
  list-style: none;
}

/* 布局结构 */
.col-mb-12.col-tb-8.col-tb-offset-2 {
  margin-left: 0;
  width: 100%;
}

.buyu_config {
  display: flex;
}

.buyu_config__aside {
  position: sticky;
  top: 15px;
  width: 200px;
  background: var(--background-color);
  padding: 10px;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}

.buyu_config>form,
.buyu_config__notice {
  position: relative;
  display: none;
  background: var(--background-color);
  min-width: 0;
  flex: 1;
  margin-left: 15px;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}

/* 侧边栏样式 */
.buyu_config__aside .logo {
  color: #303133;
  font-weight: 500;
  font-size: 24px;
  text-align: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #d1d1d1;
  padding-bottom: 10px;
}

.buyu_config__aside .tabs {
  margin-bottom: 10px;
}

.buyu_config__aside .tabs .item {
  border-radius: 5px;
  text-align: center;
  height: 40px;
  line-height: 40px;
  color: var(--text-color);
  cursor: pointer;
  transition: background var(--transition-time);
  user-select: none;
}

.buyu_config__aside .tabs .item:hover {
  background: var(--hover-bg);
}

.buyu_config__aside .tabs .item.active {
  color: #ffffff;
  font-weight: 600;
  background: var(--active-bg);
}

.buyu_config__aside .backup input {
  width: 180px;
  height: 40px;
  line-height: 40px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  border-radius: 5px;
  transition: opacity var(--transition-time);
  border: none;
  cursor: pointer;
}

.buyu_config__aside .backup input:hover {
  opacity: 0.85;
}

.buyu_config__aside .backup input:nth-child(1) {
  background: #000000;
}

.buyu_config__aside .backup input:nth-child(2) {
  background: #0011ff;
}

.buyu_config__aside .backup input:nth-child(3) {
  margin-bottom: 0;
  background: var(--warning-color);
}

/* 表单区域样式 */
.buyu_config>form .typecho-option {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 15px;
  background: var(--background-color);
  border-top: 1px solid #ebebeb;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.buyu_config>form .typecho-option button {
  width: 170px;
  height: 40px;
  background-color: #000000;
  border-radius: 5px;
}

.buyu_config>form .typecho-option button:hover {
  animation: pulse 1s;
  box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
}

.buyu_config>form .buyu_content {
  display: none;
  padding: 15px;
}

.buyu_config>form .buyu_content li {
  border: 1px solid var(--border-color);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: var(--border-radius);
}

.buyu_config>form .buyu_content li:last-child {
  margin-bottom: 0;
}

.buyu_config>form .buyu_content li .typecho-label {
  display: block;
  border-left: 4px solid var(--secondary-color);
  background: #ecf5ff;
  line-height: 26px;
  margin-bottom: 15px;
  padding: 5px 15px;
  color: var(--secondary-color);
  user-select: none;
  border-radius: 0 4px 4px 0;
}

.buyu_config>form .buyu_content li select {
  min-width: 200px;
  height: 34px;
  line-height: 34px;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 4px;
  padding-left: 5px;
}

.buyu_config>form .buyu_content li .multiline {
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.buyu_config>form .buyu_content li .multiline input[type='checkbox'] {
  margin-right: 5px;
}

/* 表单元素优化 */
.buyu_config>form .buyu_content li textarea,
.buyu_config>form .buyu_content li input[type='text'] {
  width: 100%;
  padding: 0.625rem;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.buyu_config>form .buyu_content li textarea:focus,
.buyu_config>form .buyu_content li input[type='text']:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.2);
}

.buyu_config>form .buyu_content li textarea {
  height: 125px;
  resize: vertical;
}

.buyu_config>form .buyu_content li .description {
  background: #f8f8f8;
  color: var(--text-light);
  padding: 10px 15px;
  margin-top: 15px;
  line-height: 26px;
  border-radius: 4px;
  word-break: break-all;
}

/* 通知区域样式 */
.buyu_config__notice {
  line-height: 28px;
  color: var(--text-color);
}

.buyu_config__notice .title {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #e4e7ed;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--success-color);
}

.buyu_config__notice ol {
  padding: 0 40px;
  margin-bottom: 15px;
}

.buyu_config__notice ol li {
  list-style: decimal;
}

/* 动画效果 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .buyu_config {
    display: block;
  }

  .buyu_config__aside {
    width: 100%;
    margin-bottom: 15px;
  }

  .buyu_config__aside .tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ebeef5;
    padding-bottom: 10px;
  }

  .buyu_config__aside .tabs .item {
    width: 33.33333333%;
    height: 36px;
    line-height: 36px;
    border-radius: 5px;
  }

  .buyu_config__aside .backup {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .buyu_config__aside .backup input {
    width: auto;
    flex: 1;
    margin-bottom: 0;
    height: 36px;
    line-height: 36px;
    border-radius: 5px;
  }

  .buyu_config__aside .backup input:nth-child(2) {
    margin: 0 10px;
  }

  .buyu_config>form,
  .buyu_config__notice {
    margin-left: 0;
  }

  .buyu_config>form .typecho-option {
    padding: 10px 0;
  }

  .buyu_config>form .typecho-option button {
    width: 150px;
    height: 38px;
    border-radius: 5px;
  }
}